raar.language.compiler
Class RACompilerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by raar.exception.RAException
              extended by raar.language.compiler.RACompilerException
All Implemented Interfaces:
java.io.Serializable

public class RACompilerException
extends RAException

Exception thrown by the various methods of the Compiler. Internally catched and converted to an RAException. However the extra code fragment option enables the compiler to give a more specific error message, especially the line of code in which the error occured.

See Also:
Serialized Form

Constructor Summary
RACompilerException(java.lang.String e, java.lang.String codeFragment, int lineOfError)
          Construct an exception.
 
Method Summary
 java.lang.String getCodeFragment()
          Get code fragment that is wrong.
 int getLineOfError()
          Get line in which the error is present.
 java.lang.String getMessage()
          Get error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RACompilerException

public RACompilerException(java.lang.String e,
                           java.lang.String codeFragment,
                           int lineOfError)
Construct an exception.

Method Detail

getCodeFragment

public java.lang.String getCodeFragment()
Get code fragment that is wrong.


getLineOfError

public int getLineOfError()
Get line in which the error is present.


getMessage

public java.lang.String getMessage()
Get error message.

Overrides:
getMessage in class java.lang.Throwable